package com.molichuxing.gateway.bff.basic.service;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.gateway.bff.basic.entity.response.*;

import java.util.List;
import java.util.Map;

public interface BasicBffService {

  /***
   * 获取保险公司列表
   * @return
   */
  List<InsuranceCompanyVo> getInsurance();

  /***
   * 省市级别关系
   * @return
   */
  List<RegionCityVo> getAllCity(Integer level);

  /***
   *  分子公司列表
   * @param selectParams
   * @return
   */
  Paged<SubcompanyVo> getSubcompanyListPage(Map<String, Object> selectParams);

  /***
   * 获取分子公司详情
   * @param id
   * @return
   */
  SubcompanyVo getSubcompany(Integer id);


  /***
   * 新增分子公司
   * @param subcompanyVo
   * @return
   */
  Boolean createSubcompany(SubcompanyVo subcompanyVo);


  /****
   * 修改分子公司
   * @param subcompanyVo
   * @return
   */
  Boolean modifySubcompany(SubcompanyVo subcompanyVo);


  /***
   * 获取产权方列表
   * @param selectParams
   * @return
   */
  Paged<OwnershipVo> getOwnershipListPage(Map<String, Object> selectParams);


  /**
   *新增产权方
   * @param ownershipVo
   * @return
   */
  Boolean createOwnership(OwnershipVo ownershipVo);


  /***
   * 修改产权方
   * @param ownershipVo
   * @return
   */
  Boolean modifyOwnership(OwnershipVo ownershipVo);

  /**
   * 根据id查询产权方
   * @param ownershipId
   * @return
   */
  public OwnershipDetailVo getOwnershipById(Integer ownershipId);

  /**
   * 根据省份id查询产权方
   * @param provinceId
   * @return
   */
  public List<SubcompanyVo> getOwnershipByProvinceId(Integer provinceId);

}
